package com.zsr.mapper;

import com.zsr.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author zsr
 * @Desc
 * @Date 2021/5/21 15:17
 */
//这个注解表示了这是一个mybatis的mapper类：dao
@Mapper
@Repository
public interface UserMapper {
    List<Users> queryUserList();

    Users queryUserById(int id);

    int addUser(Users users);

    int updateUser(Users users);

    int deleteUser(Users users);

}
